31.07.2012, 19:28
Quote:
pawn Код:
But When I tried to teleport on this map /cs it gives me weapon but ammo shows. |
pawn Код:
CMD:cs(playerid, params[])
{
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/cs) {00CCFF}%s {6666FF}has Teleported to Counter-Strike Deathmatch",pName);
SendClientMessageToAll(0x6666FFFF, string);
GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Counter-Strike",2000,3);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 600000);
GivePlayerWeapon(playerid, 24, 600000);
GivePlayerWeapon(playerid, 28, 600000);
GivePlayerWeapon(playerid, 30, 600000);

EDIT: if you want to have infinite ammo in your whole GM, change "GivePlayerWeapon(playerid, x, ammount of bullets 60k); in every cmd that gives you a gun.