30.08.2011, 16:52
Como tu uso no code do shadoww5, sу colocar assim...
pawn Code:
new Ccarro;
if (strcmp(cmdtext, "/infernus", true)==0)
{
if(Ccarro == 0)
{
new Float:X, Float:Y, Float:Z ;
GetPlayerPos(playerid, X, Y, Z);
SetPVarInt(playerid, "Car", CreateVehicle(411, X, Y, Z, 0.0, -1, -1, -1));
Ccarro = 1;
}
if(Ccarro == 1) return SendClientMessage(playerid,-1,"Vocк jб criou um carro");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(vehicleid == GetPVarInt(playerid, "Car"))
{
DestroyVehicle(vehicleid);
DeletePVar(playerid, "Car");
Ccarro = 0;
}
return 1;
}