16.11.2012, 17:24
help me on my problem i have problem with has sti and security wallet i did it properly i dont know whats wrong with it. can anyone help me to make it work? source codes is
when i use command
/rob
/rape
i can still use it when they buy security wallet & anti-STI at 24/7 or supasave
need ur help!
My Definition
My Variables
The Code i used
when i use command
/rob
/rape
i can still use it when they buy security wallet & anti-STI at 24/7 or supasave
need ur help!
My Definition
pawn Код:
new HasAntiSTI[MAX_PLAYERS];
new HasSecureWallet[MAX_PLAYERS];
pawn Код:
HasAntiSTI[playerid] =0;
HasSecureWallet[playerid] =0;
pawn Код:
if(HasSecureWallet[playerid] > 0)
{
HasSecureWallet[playerid] =0;
SendClientMessage(playerid,COLOR_ERROR,"You cant rob this person. He have security wallet.");
return 1;
}
if(HasAntiSTI[playerid] > 0)
{
HasAntiSTI[playerid] =0;
SendClientMessage(playerid,COLOR_ERROR,"You cannot rape this person. He have Anti-STI.");
return 1;
}