25.03.2016, 01:24
https://sampwiki.blast.hk/wiki/IsPlayerAdmin
no caso seria admin /rcon login jб para outros modos teria que criar um sistema de salvamento dini ou dof2 mais avanзado mysql ou sql entre outras citei as principais .
Tuto DINI: https://sampforum.blast.hk/showthread.php?tid=180237
Manual DOF2: https://sampforum.blast.hk/showthread.php?tid=585807
Tuto DOF2:https://sampforum.blast.hk/showthread.php?tid=422519
PHP код:
if (strcmp("/pref", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
SetPlayerPos(playerid,XX,YY,ZZ);
GameTextForPlayer(playerid,"Vocк foi teleportado com sucesso",6000,5);
}
return 1;
}
Tuto DINI: https://sampforum.blast.hk/showthread.php?tid=180237
Manual DOF2: https://sampforum.blast.hk/showthread.php?tid=585807
Tuto DOF2:https://sampforum.blast.hk/showthread.php?tid=422519