28.05.2011, 14:17
pawn Код:
if(!strcmp("/s", cmdtext, true))
{
new msg[128];
GetPlayerPos(playerid, PlayerX[playerid], PlayerY[playerid], PlayerZ[playerid]);
format(msg, sizeof(msg), "Vocк salvou sua posiзгo, digite /i para voltar a sua posiзгo.", PlayerX[playerid], PlayerY[playerid], PlayerZ[playerid]);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
return 1;
}
if(!strcmp("/i", cmdtext, true))
{
new msg[128];
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, PlayerX[playerid], PlayerY[playerid], PlayerZ[playerid]);
}
else
{
SetVehiclePos(GetPlayerVehicleID(playerid), PlayerX[playerid], PlayerY[playerid], PlayerZ[playerid]);
}
format(msg, sizeof(msg), "Vocк voltou a posiзгo", PlayerX[playerid], PlayerY[playerid], PlayerZ[playerid]);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
return 1;
}