help with defines
#2

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

COMMANDetcar(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;
}
Reply


Messages In This Thread
help with defines - by St1geR - 23.10.2012, 12:42
Re: help with defines - by redreaper666 - 23.10.2012, 12:48
Re: help with defines - by St1geR - 23.10.2012, 12:52
Re: help with defines - by St1geR - 23.10.2012, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)