still getting execute
#1

Код:
CMD:spawn(playerid,params[])
{
	if(pInfo[playerid][Registered] == 0)
	{
		GetPlayerPos( playerid, PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ] );
		GetPlayerFacingAngle(playerid, Angle[playerid]);
	 	GetPlayerInterior(playerid);
		GameTextForPlayer(playerid,"~y~Spawn Point ~n~~g~Saved",2000,3);
		return 1;
	}
	else return SendClientMessage(playerid, white,"{FF0000}>> You must be register to the server before using this command");
}
How come it was still getting called?

EDIT: Okay I got it working now...


How about under on player spawn

Код:
if ( PosX[ playerid ] != 0 && PosY[ playerid ] != 0 && PosZ[ playerid ] != 0 )
{
SetPlayerPos( playerid, PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ] );
SetPlayerFacingAngle( playerid, Angle[ playerid ] );
SetPlayerInterior( playerid, Interior[ playerid ] );
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);

	 	}
		else
	 	{
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
how do I add

Код:
if(pInfo[playerid][Registered] == 1 && pInfo[playerid][Logged] == 1)
{

else return SendClientMessage(playerid, white,"{FF0000}>> You must register first before using this command");
}
Reply


Messages In This Thread
still getting execute - by gotwarzone - 24.10.2013, 21:12
Re: still getting execute - by DanishHaq - 24.10.2013, 21:17
Re: still getting execute - by gotwarzone - 24.10.2013, 21:29
Re: still getting execute - by gotwarzone - 24.10.2013, 22:03

Forum Jump:


Users browsing this thread: 1 Guest(s)