Posts: 106
Threads: 30
Joined: Jun 2013
Quote:
Originally Posted by DaniceMcHarley
pawn Код:
#define COLOR_TRANSPARENT_MAP 0xFFFFFF00
case SNIPER: { TogglePlayerControllable(playerid, 1); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 23, 200);//silent pistol GivePlayerWeapon(playerid, 34, 250);//sniper GivePlayerWeapon(playerid, 29, 250);//mp5 GivePlayerWeapon(playerid, 4, 1);//knife RemovePlayerMapIcon(playerid, 0); SetPlayerColor(playerid,COLOR_TRANSPARENT_MAP); }
or
pawn Код:
#define COLOR_TRANSPARENT_MAP 0xFFFFFF00 case SNIPER: { TogglePlayerControllable(playerid, 1); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 23, 200);//silent pistol GivePlayerWeapon(playerid, 34, 250);//sniper GivePlayerWeapon(playerid, 29, 250);//mp5 GivePlayerWeapon(playerid, 4, 1);//knife RemovePlayerMapIcon(playerid, 0); for(new i = 0; i < MAX_PLAYERS; i++) // use foreach if u want. { if(IsPlayerConnected(i)) { SetPlayerMarkerForPlayer(i, playerid,COLOR_TRANSPARENT_MAP); } } }
|
Thanks bro I +1rep you.
Can you also say me how I can make this
Код HTML:
case MEDIC:
{
TogglePlayerControllable(playerid, 1);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 33, 200);
GivePlayerWeapon(playerid, 22, 200);
GivePlayerWeapon(playerid, 25, 200);
GivePlayerWeapon(playerid, 11, 2);
}
Only joinable on 500 Score? its not a team, just a Class like spy and so on.