24.04.2012, 19:02
No apparent problem ...
pawn Код:
if(dialogid == PDLICENCI)
{
if(response)
{
switch(listitem
{
case 0:
{
if(PlayerInfo[playerid][pGunLic] == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Kupili ste dozvolu za oruzje za {00B9FF}$5000");
SafeGivePlayerMoney(playerid, - 5000);
PlayerInfo[playerid][pGunLic] = 1;
OnPlayerUpdateCustom(playerid);
}
else
return SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Ti veke imas kupeno {00B9FF}licenca.");
}
case 1:
{
if(PlayerInfo[playerid][pFishLic] == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Kupili ste dozovlu za ribolov za {00B9FF}$2000");
SafeGivePlayerMoney(playerid, - 2000);
PlayerInfo[playerid][pFishLic] = 1;
OnPlayerUpdateCustom(playerid);
}
else
return SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Ti veke imas kupeno {00B9FF}licenca.");
}
}
}
}