rendered paste bodyif(strcmp(cmd, "/Cell", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /Cell [playerid/PartOfName]");
return 1;
}
new playa;
new Float:slx, Float:sly, Float:slz;
if(IsStringAName(tmp))
{
playa = GetPlayerID(tmp);
}
else
{
playa = strval(tmp);
}
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=1)
{
GetPlayerPos(playa, slx, sly, slz);
SetPlayerWorldBounds(playa,slx+5,slx-5,sly+5,xly-5)
PlaySoundAll(playa, 1130, slx, sly, slz);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
return 1;
}