CMD:50(playerid, params[])
{
if(PlayerInfo[playerid][pConnectHours] == 50)
{
if(PlayerInfo[playerid][pConnectHours] < 50) return SendClientMessage(playerid, COLOR_RED, "
You are not enough 50 ConnectHours!");
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "Full weapons - $200.000 va 20.000 Mats!");
GivePlayerValidWeapon(playerid, 27, 60000);
GivePlayerValidWeapon(playerid, 24, 60000);
GivePlayerValidWeapon(playerid, 31, 60000);
GivePlayerValidWeapon(playerid, 34, 60000);
GivePlayerValidWeapon(playerid, 29, 60000);
GivePlayerCash(playerid, 200000);
PlayerInfo[playerid][pMats] += 20000;
return 1;
}
}
else SendClientMessageEx(playerid, COLOR_RED, "You are not enough 50 ConnectHours!");
return 1;
}
CMD:50(pid){
if(PlayerInfo[pid][pConnectHours] < 50) return SendClientMessage(pid,COLOR_RED,"You are not enough 50 ConnectHours!");
SendClientMessageEx(playerid, COLOR_YELLOW, "Full weapons - $200.000 va 20.000 Mats!");
new arr[]={27,24,31,34,29};
for(new i,i2=sizeof(arr); i<i2; i++)GivePlayerValidWeapon(pid,arr[i],60000);
GivePlayerCash(pid, 200000);
PlayerInfo[pid][pMats]+=20000;
return 1;
}
PHP код:
|
CMD:50(pid){
if(PlayerInfo[pid][pConnectHours] < 50) return SendClientMessage(pid,COLOR_RED,"You are not enough 50 ConnectHours!");
SendClientMessageEx(pid, COLOR_YELLOW, "Full weapons - $200.000 va 20.000 Mats!");
new arr[]={27,24,31,34,29};
for(new i,i2=sizeof(arr); i<i2; i++)GivePlayerValidWeapon(pid,arr[i],60000);
GivePlayerCash(pid, 200000);
PlayerInfo[pid][pMats]+=20000;
return 1;
}
PHP код:
|
these aren't same, please re read my post and his post careful
|