21.07.2013, 19:40
(
Последний раз редактировалось Saleem; 22.07.2013 в 03:13.
)
hello i want to disable all commands while player in in this match
also i want /leave command for this macth please help me
also i want /leave command for this macth please help me
PHP код:
if(strcmp(cmdtext, "/onehit", true) == 0)
{
new msg[128];
new playerName[MAX_PLAYER_NAME], RandomSpawn = random(5);
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
if (RandomSpawn == 0)
{
SetPlayerPos(playerid, 22.7227,2245.2556,126.6797);
}
if (RandomSpawn == 1)
{
SetPlayerPos(playerid, 33.6609,2238.2681,126.6797);
}
if (RandomSpawn == 2)
{
SetPlayerPos(playerid, 27.3105,2233.2581,126.6797);
}
if (RandomSpawn == 3)
{
SetPlayerPos(playerid, 41.3499,2227.5371,125.0820);
}
if (RandomSpawn == 4)
{
SetPlayerPos(playerid, 29.9060,2230.6448,126.4038);
}
SetCameraBehindPlayer(playerid);
SetPlayerHealth(playerid, 1);
ResetPlayerWeapons(playerid);
format(msg,sizeof(msg),"%s [%i] Has Joined One hit kill Death match : [/onehit]",playerName,playerid);
SendClientMessageToAll(COLOR_CYAN,msg);
return 1;
}