26.07.2011, 20:22
Im on a role with my admin script but, i need a ZCMD gethere command. Can anyone supply me with one?
//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;
}
pawn Код:
|