begining
[pawn]new Package1[MAX_PLAYERS];
new Package2[MAX_PLAYERS];
new Package3[MAX_PLAYERS];
new Package4[MAX_PLAYERS];
new Package5[MAX_PLAYERS];
new Package6[MAX_PLAYERS];
new Package7[MAX_PLAYERS];
new Package8[MAX_PLAYERS];
new Package9[MAX_PLAYERS];[/pawn]
this is in onpickedup
[pawn] if(pickupid == 183) {
GameTextForPlayer(playerid, "You Found Package");
Package1[playerid] = 1;
}
if(pickupid == 184) {
GameTextForPlayer(playerid, "You Found Package");
Package2[playerid] = 1;
}
if(pickupid == 185) {
GameTextForPlayer(playerid, "You Found Package");
Package3[playerid] = 1;
}
if(pickupid == 186) {
GameTextForPlayer(playerid, "You Found Package");
Package4[playerid] = 1;
}
if(pickupid == 187) {
GameTextForPlayer(playerid, "You Found Package");
Package5[playerid] = 1;
}
if(pickupid == 188) {
GameTextForPlayer(playerid, "You Found Package");
Package6[playerid] = 1;
}
if(pickupid == 189) {
GameTextForPlayer(playerid, "You Found Package");
Package7[playerid] = 1;
}
if(pickupid == 190) {
GameTextForPlayer(playerid, "You Found Package");
Package8[playerid] = 1;
}
if(pickupid == 191) {
GameTextForPlayer(playerid, "You Found Package");
Package9[playerid] = 1;
SendClientMessage(playerid,RED, "NOW GOTO BANK AND USE !PAY ANd Get Cash");
}[/pawn]
this is in ongamemodeinit
[pawn]AddStaticPickup(183,410,-564.9205, 785.2129, 22.8768);
AddStaticPickup(184,410,-603.8260, 634.3389, 12.2347);
AddStaticPickup(185,410,-895.9302, 440.7797, 15.0725);
AddStaticPickup(186,410,-846.9323, -75.3983, 11.5558);
AddStaticPickup(187,410,-1012.1729, -252.1051, 10.3194);
AddStaticPickup(188,410,-1006.2412, 196.3303, 10.9204);
AddStaticPickup(189,410,-1095.5785, 332.7760, 10.7842);
AddStaticPickup(190,410,-746.6312, 250.1251, 15.8442);
AddStaticPickup(191,410,-788.6240, 28.8877, 10.6330);[/pawn]
this is in onplayertext
[pawn] else if ( strcmp( cmd, "!pay", true ) == 0 )
{
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if(Package1[playerid] == 0) SendClientMessage(playerid, RED,"You DOnt Have ALL Pickups");
else if(Package2[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups");
else if(Package3[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups");
else if(Package4[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
else if(Package5[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
else if(Package6[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups");
else if(Package7[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
else if(Package8[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
else if(Package9[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
else
{
new pmoney = GetPlayerMoney(playerid);
SetPlayerMoney(playerid, pmoney + 50000);
SendClientMessage(playerid,RED," You Have Found All Pickups And Get Paid ");
Package1[playerid] = 0;
Package2[playerid] = 0;
Package3[playerid] = 0;
Package4[playerid] = 0;
Package5[playerid] = 0;
Package6[playerid] = 0;
Package7[playerid] = 0;
Package8[playerid] = 0;
Package9[playerid] = 0;
}
return 1;
}[/pawn]
GOOD LUCK