04.02.2010, 16:44
pawn Код:
if(!strcmp(cmd, "/irpos", true))
{
new tmp[MAX_psf_strtok];
tmp = psf_strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "/irpos [X] [Y] [Z]");
new Float:x = floatstr(tmp);
tmp = psf_strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "/irpos [X] [Y] [Z]");
new Float:y = floatstr(tmp);
tmp = psf_strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "/irpos [X] [Y] [Z]");
new Float:z = floatstr(tmp);
SetPlayerPos(playerid, x, y, z);
format(tmp, sizeof(tmp), "%s teleportado а posiзгo X %f, Y %f, Z %f!", PlayerName(playerid), x, y, z);
return SendClientMessage(playerid, COLOR_GREEN, tmp);
}
Se der erro aн baixa o include PSF...
Flws.