15.10.2012, 14:22
Ao entrar na DP, as armas de cívis/gangues serem retiradas
Como faço isto?E ao sair, as armas serem devolvidas?
Lembrando, apenas os cops podem entrar com armas..
Ao entrar na DP, as armas de cнvis/gangues serem retiradas
Como faзo isto?E ao sair, as armas serem devolvidas? Lembrando, apenas os cops podem entrar com armas.. |
ResetPlayerWeapons(playerid);
//Lucas jб respondeu '-'
// declarando variбvel global
new armasInterior[MAX_PLAYERS][13];
new municaoInterior[MAX_PLAYERS][13];
//
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
if(newinteriorid == INTERIOR_DP) { // trocar INTERIOR_DP
if(Civil || Gangster) { // alterar
static i;
for(i = 12; i > 0; --i) {
GetPlayerWeaponData(playerid, i, armasInterior[playerid][i], municaoInterior[playerid][i]);
}
ResetPlayerWeapons(playerid);
}
}
if(newinteriorid == 0 && oldinteriorid == INTERIOR_DP) { // trocar INTERIOR_DP
if(Civil || Gangster) { // alterar
static i;
for(i = 12; i > 0; --i) {
GivePlayerWeapon(playerid, armasInterior[playerid][i], municaoInterior[playerid][i]);
}
}
}
return 1;
}
if(Civil || Gangster)
if(PlayerInfo[playerid][pMember] == 10)