14.02.2012, 22:37
Se for isso.
pawn Код:
if(strcmp(cmdtext,"/campo",true)==0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"[ERRO]: Vocк nгo й um admin rcon.");
SetPlayerPos(playerid,1359.2698,2160.6514,11.0156), SetPlayerInterior(playerid,0);
return true;
}
if(strcmp(cmdtext,"/barco",true)==0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"[ERRO]: Vocк nгo й um admin rcon.");
SetPlayerPos(playerid,-1473.4897,1489.1138,8.2501), SetPlayerInterior(playerid,0);
return true;
}
if(strcmp(cmdtext,"/estadio",true)==0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"[ERRO]: Vocк nгo й um admin rcon.");
SetPlayerPos(playerid,3050.3301,-962.2635,13.0032), SetPlayerInterior(playerid,0);
return true;
}
if(strcmp(cmdtext,"/arrancada",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"[ERRO]: Vocк nгo й um admin rcon.");
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(vehicleid,0), SetPlayerInterior(playerid,0);
SetVehiclePos(vehicleid,-2129.5305,-972.6347,32.0234);
SetPlayerPos(playerid,-2129.5305,-972.6347,32.0234), SetPlayerInterior(playerid,0);
return true;
}