about CallRemoteFunction
#6

hey, i've problem, How to make it to be a variable?
Ex
Код:
//in gamemode
CMD:dm(playerid, params[])
{
	SetPVarInt(playerid,"InDM",1);
	SendClientMessage(playerid, 0xFFFFFFFF, "You are in DM");
	return 1;
}
Код:
//in Filterscript
CMD:car(playerid, params[])
{
	GetPVarInt(playerid, "InDM");
	SendClientMessage(playerid, 0xFFFFFFFF, "you can't use cars when in DM");
	return 1;
}
Nothing Happned! :/ sorry i'm new on scripting
Reply


Messages In This Thread
about CallRemoteFunction - by Genmetal - 18.02.2015, 00:52
Re: about CallRemoteFunction - by arakuta - 18.02.2015, 01:12
Re: about CallRemoteFunction - by Genmetal - 18.02.2015, 01:20
Re: about CallRemoteFunction - by arakuta - 18.02.2015, 01:25
Re: about CallRemoteFunction - by Genmetal - 18.02.2015, 02:17
Re: about CallRemoteFunction - by Genmetal - 18.02.2015, 02:28
Re: about CallRemoteFunction - by PaulDinam - 18.02.2015, 02:44
Re: about CallRemoteFunction - by Genmetal - 18.02.2015, 03:08

Forum Jump:


Users browsing this thread: 3 Guest(s)