Convent ZCMD to SAMP CMD please!
#1

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) {
Reply
#2

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
Reply
#3

i understand now, sorry if i misunderstanding these strcmp users...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)