14.04.2013, 08:48
pawn Код:
//variaveis globais
new
bool: plr_in_ct_veh [ MAX_PLAYERS ],
vehicle_ct [ MAX_PLAYERS ];
CMD:ct(playerid, params[])
{
if(CSMBR[playerid] != ROCAM || CSMBR[playerid] != ROTA)
return SCM(playerid, 0xAA3333AA, " VOCК NГO Й POLICIAL!");
if ( plr_in_ct_veh [ playerid ] )
DestroyVehicle ( vehicle_ct [ playerid ] );
SetPlayerPos(playerid,1716.5999800,749.7999900,9.9000000);
vehicle_ct [ playerid ] = CreateVehicle(523,1752.1411,683.9146,10.5176,92.5144,1,1,100000);
PutPlayerInVehicle(playerid, vehicle_ct [ playerid ], 0);
plr_in_ct_veh [ playerid ] = true;
new
Float: x,
Float: y,
Float: z;
GetPlayerPos(playerid, x, y, z);
PlayerPlaySound(playerid, 5201, x,y,z);
GameTextForPlayer(playerid, "Seja bem vindo ao centro de treino da ROCAM.", 9000, 5);
if(Blindado[vehicle_ct [ playerid ]] == true)
RepairVehicle(vehicle_ct [ playerid ]);
return 1;
}
--
Recomendo usar:
pawn Код:
plr_in_ct_veh [ playerid ] = false;