24.03.2012, 11:58
PHP код:
new VeiculoC[MAX_PLAYERS];//no topo
/---------------------------------------//
if(strcmp(cmdtext,"/sultan", true) == 0 || strcmp(cmdtext,"/stn", true) == 0)
{
new Float:X,Float:Y,Float:Z,Float:Angle;
GetPlayerPos(playerid,X,Y,Z);
DestroyVehicle(VeiculoC[playerid]);
GetPlayerFacingAngle(playerid, Angle);
PutPlayerInVehicle(playerid,CreateVehicle(560,X,Y,Z,Angle,-1,-1,-1),0);
VeiculoC[playerid] = GetPlayerVehicleID(playerid);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
DestroyVehicle(VeiculoC[playerid]);
return 1;
}