10.06.2017, 23:52
PHP код:
/*============================================================================//
Vehicles
//============================================================================*/
AddStaticVehicle(415,-15.2823,378.0317,12.1687,0,-1,-1);
AddStaticVehicle(522,-15.6546,367.7870,12.1687,0,-1,-1);
AddStaticVehicle(506,-15.4606,360.5143,12.1687,0,-1,-1);
AddStaticVehicle(521,-15.1874,353.8620,12.1687,0,-1,-1);
AddVehicleComponent(415,1010);
AddVehicleComponent(506,1010);
AddVehicleComponent(522,1010);// adding nitro to bike for test
AddVehicleComponent(521,1010);//Adding to bike for test
return 1;
//============================================================================//
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~g~Welcome to Sniper vs Stunters Arena",4000,4);
SetWeather(5);
return 1;
}
/*==============================================================================
Commands
==============================================================================*/
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp ("/credits", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"- Credits :Server Owner : .FaHaD.");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"- MAP Created by : Ceedie.");
return 1;
}
if(!strcmp(cmdtext, "/kill", true))
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,COLOR_ORANGE, ">> SERVER: You used command /kill & Died.");
return 1;
}
if (!strcmp ("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_GREEN," HELP : - Snipers,Try to kill the stunters with your weapon");
SendClientMessage(playerid,COLOR_SEAGREEN," - Stunters,Try to kill the snipers with the Vehicles Given. Have Fun!");
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
GameTextForPlayer(playerid,"~r~ Use ~b~ LALT ~g~ For Nitro!",4000,4);
return 1;
}
//==============================================================================
Anyone?