Jump to content

Spawn Unica ves |Spawn Panel|


Recommended Posts

Posted
Como hago para que solo se spawnee una ves con el spawn panel de 50P

Tendrias que usar setAccountData , y cuando el player se loguee chekeas si tiene esa data, entonces no muestras el spawn.

Posted
Como hago para que solo se spawnee una ves con el spawn panel de 50P

Tendrias que usar setAccountData , y cuando el player se loguee chekeas si tiene esa data, entonces no muestras el spawn.

No entendi mucho en la wiki... me darias un ejemplo?

Posted

Ejemplo:

function changeData(player) 
local account = getPlayerAccount(player) 
if ( account ) then 
setAccountData(account, "Data", true) 
end 
end 
addCommandHandler("ejemplo", changeData) 

function checkAccount() 
local account = getPlayerAccount(source) 
if ( account ) then 
if not getAccountData(account, "Data") then 
triggerClientEvent(source, "panel", root, source) 
end 
end 
end 
addEventHandler("onPlayerLogin", root, checkAccount) 

ese es un ejemplo

Posted
Ejemplo:
function changeData(player) 
local account = getPlayerAccount(player) 
if ( account ) then 
setAccountData(account, "Data", true) 
end 
end 
addCommandHandler("ejemplo", changeData) 

function checkAccount() 
local account = getPlayerAccount(source) 
if ( account ) then 
if not getAccountData(account, "Data") then 
triggerClientEvent(source, "panel", root, source) 
end 
end 
end 
addEventHandler("onPlayerLogin", root, checkAccount) 

ese es un ejemplo

gracias Plate.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...