ZCMD isn't working :/ ?
#3

Try this
Код:
CMD:kill(playerid, params[])
{
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
    return 0;
}


CMD:goto(playerid,params[])
{
	new targetid;
	if(sscanf(params, "u", targetid)) SendClientMessage(playerid, 0xFFFFFFAA" /goto [playerid]");
	if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFAA" Player is not online");

	new Float:x,Float:y,Float:z;
	GetPlayerPos(targetid,Float:x,Float:y,Float:z);
    SetPlayerPos(playerid, Float:x, Float:y, Float:z);
    }
    else {
    SendClientMessage(playerid, 0xFFFFFFAA "You do not have the right admin permissions for this command!");
    }
    return 1;
}
CMD:*******(playerid, params[])
{
SendClientMessage(playerid, 0x00000000, "Hello *******");
return 1;
}
Dont leave a space between return 1; and the send client message
Then /goto cmd I made it for admins though you must need to add
Код:
if(playerinfo[playerid][AdminLevel] >= rankhere)
Reply


Messages In This Thread
ZCMD isn't working :/ ? - by Le3aT - 01.12.2013, 07:04
Re: ZCMD isn't working :/ ? - by Le3aT - 01.12.2013, 07:20
Re: ZCMD isn't working :/ ? - by Tomix - 01.12.2013, 07:26
Re: ZCMD isn't working :/ ? - by newbie scripter - 01.12.2013, 07:32
Re: ZCMD isn't working :/ ? - by Le3aT - 01.12.2013, 07:42
Re: ZCMD isn't working :/ ? - by Avi Raj - 01.12.2013, 07:44
Re: ZCMD isn't working :/ ? - by Tomix - 01.12.2013, 07:48
Re: ZCMD isn't working :/ ? - by iZN - 01.12.2013, 08:34
Re: ZCMD isn't working :/ ? - by Threshold - 01.12.2013, 10:15

Forum Jump:


Users browsing this thread: 2 Guest(s)