#1

Help see this
Код:
#include <a_samp>

#define COLOR_GREEN 0x33AA33AA

public OnPlayerCommandText(playerid,cmdtext[]){
//============================/Rpg========================================
    if(strcmp(cmdtext,"/rpg",true)==0)
	{
	SetCameraBehindPlayer(playerid);
	//DynUpdateStart(playerid); // Avoid falling through object's
	SetPlayerArmour(playerid,100);
	ResetPlayerWeapons(playerid);
	new vehicleid = GetPlayerVehicleID(playerid);
	new State = GetPlayerState(playerid);
	if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
	{
	GameTextForPlayer(playerid,"~g~R~r~P~g~G",4000,6);
	LinkVehicleToInterior(vehicleid,0);
	SetPlayerInterior(playerid,15);
	return SetVehiclePos(vehicleid,-1394.20,987.62,1023.96);
	}
	SetPlayerPos(playerid,-1394.20,987.62,1023.96);
    GivePlayerWeapon(playerid, 35, 200); // Rocket Launcher
    SetPlayerHealth(playerid, 100);
	SetPlayerInterior(playerid,15);
    SendClientMessage(playerid,0x00FF00FF,"");
	SendClientMessage(playerid,0x00FF00FF,"You Have Joined The Rpg Madness Deathmatch");
    new name[MAX_PLAYER_NAME];
    new msg[256];
	GetPlayerName(playerid,name,MAX_PLAYER_NAME);
	format(msg,sizeof(msg),"%s [%i] has been teleported to Rpg Madness To Join Use [/Rpg].",name,playerid);
	SendClientMessageToAll(COLOR_GREEN,msg);
	return 1;
	}
	return 0;
}
Anyone please add such things
1. When a player dies it will be announcve that this player has been droped out from madness.
2.When a player wins will get 200 ammo on rocket launcher
3. when 2 players joins it they will get guns after 30 seconds and after 30 seconds no one can join it.
when minigame is started
Help
Fast
Reply


Messages In This Thread
Help - by wheelman_WM - 26.02.2011, 10:17
Re: Help - by wheelman_WM - 26.02.2011, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)