SA-MP Forums Archive
help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help (/showthread.php?tid=490705)



help - Snoopythekill - 27.01.2014

some can help you pass this on strcmp a dcmd.

Код:
new VariableDeBloqueo[MAX_PLAYERS];
//
if(strcmp(cmdtext, "/Salirdm", true) == 0)
{
SpawnPlayer(playerid);
VariableDeBloqueo[playerid] = 0;
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerTime(playerid,0,7);
GameTextForPlayer(playerid,"~r~~h~Has salido!",2500,3);
return 1;
}
//
if(VariableDeBloqueo[playerid] == 1)
{
GameTextForPlayer(playerid,"~r~~h~! (error) !~n~~w~escribe~n~~y~/salirDM",3000,3);
return 1;
}
Gracias.