Convent ZCMD to SAMP CMD please! - 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: Convent ZCMD to SAMP CMD please! (
/showthread.php?tid=388698)
Convent ZCMD to SAMP CMD please! -
pln102 - 30.10.2012
Can you help me?
Код:
CMD:adminhq(playerid)
{
if(PlayerInfo[playerid][pAdmin] > 0)
{
SetPlayerPos(playerid,1608.4908447266, -1468.5803222656, -24.751445770264);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pLocal] = 0;
}
return 1;
}
i want to be samp cmd like this
Код:
if(strcmp(cmd, "/adminhq", true) == 0) {
Re: Convent ZCMD to SAMP CMD please! -
JaKe Elite - 30.10.2012
i don't understand why people today like the old one than the fastest one?
Anyway here
pawn Код:
if(strcmp(cmdtext, "/adminhq", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] > 0)
{
SetPlayerPos(playerid,1608.4908447266, -1468.5803222656, -24.751445770264);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pLocal] = 0;
}
return 1;
}
Add it inside the OnPlayerCommandText
Re: Convent ZCMD to SAMP CMD please! -
JaKe Elite - 30.10.2012
i understand now, sorry if i misunderstanding these strcmp users...