Unnamed
public text v1 · immutable if (strcmp(cmdtext, "/teleportid", true, 9) == 0) {
if(IsPlayerAdmin(playerid)==1)
{
new target = strval(cmdtext[10]);
new Float:x;
new Float:y;
new Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(target,x,y,z+1);
SendClientMessage(playerid,COLOUR_RED,"Teleported the requested playerid to you.");
}
else
{
SendClientMessage(playerid,COLOUR_RED,"You aren't an admin!");
}
return 1;
}