ZCMD GetHere
#1

Im on a role with my admin script but, i need a ZCMD gethere command. Can anyone supply me with one?
Reply
#2

pawn Код:
//You Must have sscanf - easiest way to do it.
CMD:gethere(playerid,params[])
{
    new targetid, Float:x, Float:y, Float:z;
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR, "USAGE: /gethere [id]");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR, "That player is not connected");
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(targetid, x, y+0.5, z+0.5);
    return 1;
}
Reply
#3

Quote:
Originally Posted by Kitten
Посмотреть сообщение
pawn Код:
//You Must have sscanf - easiest way to do it.
CMD:gethere(playerid,params[])
{
    new targetid, Float:x, Float:y, Float:z;
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /gethere [id]");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "That player is not connected");
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(targetid, x, y+0.5, z+0.5);
    return 1;
}
Thanks Kitten :]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)