30.11.2013, 17:51
Add this to the top of your script.
And download this: https://sampforum.blast.hk/showthread.php?tid=91354
Commands:
PHP код:
#include <zcmd>
Commands:
PHP код:
CMD:get(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
new id;
new Float:x, Float:y, Float:z;
if (!strlen(params)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /get [id]");
id = strval(params);
if (!IsPlayerConnected(id))SendClientMessage(playerid, 0xFF0000FF, "Player not found.");
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(id, x, y, z);
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You need to be an admin to use this.");
}
return 1;
}
PHP код:
CMD:goto(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new id;
new Float:x, Float:y, Float:z;
if (!strlen(params)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /goto [id]");
id = strval(params);
if (!IsPlayerConnected(id))SendClientMessage(playerid, 0xFF0000FF, "Player not found.");
GetPlayerPos(id, x, y, z);
SetPlayerPos(playerid, x, y, z);
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You need to be an admin to use this.");
}
return 1;
}