Script Help
#4

Use this

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/afk", true, 4) == 0)
{
    new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, 24);
	SendClientMessage(playerid, 0xFF0000AA, "You have gone AFK..");
	SetPlayerVirtualWorld(playerid, 1337);
	TogglePlayerControllable(playerid, 0);
	return 1;
}
if(strcmp(cmdtext, "/back", true, 5) == 0)
{
    new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, 24);
	SendClientMessage(playerid, 0xFF0000AA, "You've Back from AFK..");
	SetPlayerVirtualWorld(playerid, 0);
	TogglePlayerControllable(playerid, 1);
	return 1;
}
if(strcmp(cmdtext, "/aa", true) == 0)
{
    SetVehiclePos(GetPlayerVehicleID(playerid), 1404.1338,2436.8818,16.5000);
	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
	SetPlayerInterior(playerid, 0);
	SetPlayerPos(playerid, 1404.1338,2436.8818,16.5000);
	GameTextForPlayer(playerid,"Abandon Airport",4000,6);
	return 1;
}
if(strcmp(cmdtext, "/islanddm", true) == 0)
{
    SetPlayerInterior(playerid, 0);
	RemovePlayerFromVehicle(playerid);
	ResetPlayerWeapons(playerid);
	SetPlayerPos(playerid, 1372.8043,-3284.4734,3.1422);
	GivePlayerWeapon(playerid, 22, 5200);
	GivePlayerWeapon(playerid, 27, 1100);
	GivePlayerWeapon(playerid, 31, 4000);
	GameTextForPlayer(playerid,"Island Dm",4000,6);
	return 1;
}
if(strcmp(cmdtext, "/lvairstunt", true) == 0)
{
    SetVehiclePos(GetPlayerVehicleID(playerid), 1066.05,1319.98,247.50);
	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
	SetPlayerInterior(playerid, 0);
	SetPlayerPos(playerid,1066.05,1319.98,247.50);
	GameTextForPlayer(playerid,"Use /Carmenu for vehicles!!",4000,6);
	return 1;
}
return 1;
}
Reply


Messages In This Thread
Script Help - by EthanCortez - 28.09.2012, 13:12
Re: Script Help - by ikbenremco - 28.09.2012, 13:14
Re: Script Help - by EthanCortez - 28.09.2012, 13:26
Re: Script Help - by Mr.Anonymous - 28.09.2012, 13:30
Re: Script Help - by EthanCortez - 28.09.2012, 14:03
Re: Script Help - by RaZzZzoR - 28.09.2012, 14:06
Re: Script Help - by Scrillex - 28.09.2012, 14:06
Re: Script Help - by Mr.Anonymous - 28.09.2012, 14:09
Re: Script Help - by EthanCortez - 28.09.2012, 14:35
Re: Script Help - by EthanCortez - 28.09.2012, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)