07.03.2012, 01:17
Galera eu queria saber como eu coloca pra quando o cara entrar na areadm ganhar armas, area dm:
Armas:
pawn Код:
public areadm()
{
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)) {
//Scores
new aname[MAX_PLAYER_NAME];
new playerid;
new plid;
GetPlayerName(i, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
SetPlayerScore(i,dini_Int(file, "Level"));
if(IsPlayerInPlace(i,2016.010986, -1161.922363, 2324.010986, -923.518310)){
DMLiberado2[i] = 1;
GangZoneFlashForAll(favela,0xFFFFFFAA);
} else {
if(DMLiberado2[i] == 1){
DMLiberado2[i] = 0;
GangZoneStopFlashForAll(favela);
}
if(IsPlayerInPlace(i,1267.535, 2084.409, 1408.109, 2235.263)){
DMLiberado2[i] = 1;
GangZoneFlashForAll(areadmlv,0xFFFFFFAA);
} else {
if(DMLiberado2[i] == 1){
DMLiberado2[i] = 0;
GangZoneStopFlashForAll(areadmlv);
}
}
}
}
}
}
pawn Код:
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 999999);
GivePlayerWeapon(playerid, 28, 999999);
GivePlayerWeapon(playerid, 24, 999999);
GivePlayerWeapon(playerid, 31, 999999);
GivePlayerWeapon(playerid, 34, 999999);