08.06.2014, 16:54
PHP код:
CMD:retirar(playerid){
if(QualArmaCompro[playerid][0] == 1){
GivePlayerWeapon(playerid, 23, 10); // silence
QualArmaCompro[playerid][0] = 0;
}
else if(QualArmaCompro[playerid][1] == 1){
GivePlayerWeapon(playerid, 24, 10); // desert
QualArmaCompro[playerid][1] = 0;
}
else if(QualArmaCompro[playerid][2] == 1){
GivePlayerWeapon(playerid, 22, 10); // 24mm pistol
QualArmaCompro[playerid][2] = 0;
}
else if(QualArmaCompro[playerid][3] == 1){
GivePlayerWeapon(playerid, 29, 10); // MP5
QualArmaCompro[playerid][3] = 0;
}
return 1;
}
Como eu poderia fazer para dar as armas que ele retirou?