26.05.2014, 15:51
Now we have player1 and player2 example:
player1 have enums:
and now when player1 type /sellguns to freeze player, run animation DEALER and create dynamic checkpoint right in front of player1, and when player2 enter in that checkpoint to show it Dialog example:
and when player2 buy any weapon to check player1 do you have from it and when have to check money on player2 if they have enough to give him weapon and take his money and give it to player1 and remove one of pInfo[playerid][m4a1] ?? and when player1 type again /sellguns to remove freeze, animation and dynamic checkpoint.
Now can you explain to me how this thing can be done, if at all possible. Thanks in advance
player1 have enums:
PHP код:
pInfo[playerid][m4a1] - 10 // amount of m4a1
pInfo[playerid][ak47] - 15 // amount of ak47
rInfo[playerid][m4a1] - 2500 //price for m4a1
rInfo[playerid][ak47] - 3000 //price for ak47
PHP код:
title - Dealer (Dealer name)
menu0 - Buy M4A1 $(rInfo[playerid][m4a1]) Available(pInfo[playerid][m4a1])
menu1 - Buy AK-47 $(rInfo[playerid][ak47]) Available(pInfo[playerid][ak47])
Now can you explain to me how this thing can be done, if at all possible. Thanks in advance