Warnings
#6

no, problem is only with vehicles whats spawn after command typed.

on of my commands:

Код:
if(strcmp(cmdtext, "/nrg", true) == 0)	{
		if (gPlayerLevel[playerid] >= 1)
		if (IsPlayerInAnyVehicle(playerid)) {
		SendClientMessage(playerid,0xFF0606FF,"You already have a car!");
		} else {
	  new Float:Angle;
		new VehicleID;
		GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
	  VehicleID = CreateVehicle(522,X,Y,Z,Angle,1,-1,-1);	PutPlayerInVehicle(playerid,VehicleID,0);
		if(GetPlayerInterior(playerid)) LinkVehicleToInterior(VehicleID,GetPlayerInterior(playerid));
		SetVehicleVirtualWorld(VehicleID,GetPlayerVirtualWorld(playerid));
		ChangeVehicleColor(VehicleID,0,7);
		SendClientMessage(playerid,0x33AA33AA,"Enjoy");
	 	if (gPlayerLevel[playerid] < 1)
    SendClientMessage(playerid, 0xFF0606FF, "You are not allowed to use this command!");
	}
		return 1;
	}
when I put the cmd in other gm, it works

p.s.
Код:
if (gPlayerLevel[playerid] >= 1)
^ that is part of my levels system
Reply


Messages In This Thread
Warnings - by cigo - 11.07.2009, 15:17
Re: Warnings - by MenaceX^ - 11.07.2009, 15:17
Re: Warnings - by cigo - 11.07.2009, 15:22
Re: Warnings - by cigo - 11.07.2009, 15:36
Re: Warnings - by MenaceX^ - 11.07.2009, 15:37
Re: Warnings - by cigo - 11.07.2009, 15:40
Re: Warnings - by MenaceX^ - 11.07.2009, 15:41
Re: Warnings - by cigo - 11.07.2009, 15:44
Re: Warnings - by MenaceX^ - 11.07.2009, 15:46
Re: Warnings - by cigo - 11.07.2009, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)