23.10.2012, 12:48
why you just dont use SetPVarInt(playerid,"ART OF PLACE",1);
and using GetPVarInt instead of using bools
also it would be better to use PlayerVars cause of you could make like gamemode cmds that only can be used if they have like
COMMAND
etcar(playerid, params[])
{
if(GetPVarInt(playerid, "STUNT") != 1) return SendClientMessage(playerid, -1, "You arent in the stunt area");
new amt;
DestroyVehicle(gPlayerVehicles[playerid]);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
new Float:A, Float:B, Float:C;
GetPlayerPos(playerid, A,B,C);
PlayerPlaySound(playerid, 1139, A,B,C);
gPlayerVehicles[playerid] = CreateVehicle(amt, X, Y, Z,0,-1,-1,10);
PutPlayerInVehicle(playerid,gPlayerVehicles[playerid],0);
return 1;
}
and using GetPVarInt instead of using bools
also it would be better to use PlayerVars cause of you could make like gamemode cmds that only can be used if they have like
COMMAND

{
if(GetPVarInt(playerid, "STUNT") != 1) return SendClientMessage(playerid, -1, "You arent in the stunt area");
new amt;
DestroyVehicle(gPlayerVehicles[playerid]);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
new Float:A, Float:B, Float:C;
GetPlayerPos(playerid, A,B,C);
PlayerPlaySound(playerid, 1139, A,B,C);
gPlayerVehicles[playerid] = CreateVehicle(amt, X, Y, Z,0,-1,-1,10);
PutPlayerInVehicle(playerid,gPlayerVehicles[playerid],0);
return 1;
}