14.02.2012, 01:02
bom eu criei 3 teletransporte.
i queria q sу adm pudesse usar esse comando
ou seja qem nao for adm qero q aparecзa assim vc nao tem permiзao para usar esse comando
tipo assim espero q tenha entendido
o 3 teletransporte
Agradeзo desde Jб
i queria q sу adm pudesse usar esse comando
ou seja qem nao for adm qero q aparecзa assim vc nao tem permiзao para usar esse comando
tipo assim espero q tenha entendido
o 3 teletransporte
pawn Код:
if(strcmp(cmdtext,"/estadio",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,3050.3301,-962.2635,13.0032);
}
SetPlayerPos(playerid,3050.3301,-962.2635,13.0032);
SetPlayerInterior(playerid,0);
return 1;
}
if(strcmp(cmdtext,"/arrancada",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,-2129.5305,-972.6347,32.0234);
}
SetPlayerPos(playerid,-2129.5305,-972.6347,32.0234);
SetPlayerInterior(playerid,0);
return 1;
}
if(strcmp(cmdtext,"/campo",true)==0)
{
SetPlayerPos(playerid,1359.1013,2160.8005,11.0156);
SetPlayerInterior(playerid,0);
return 1;
}