24.02.2012, 09:49
Hello guys,
i scripted a RefundBox for new players with this pawn:
The command works.
But id 0 gets the stuff if id 1 or 2 or 3 typs /getrefund
What do i need to change about this ??
Please HEEELP!
Greets:
i scripted a RefundBox for new players with this pawn:
pawn Код:
CMD:getrefund(playerid, params[])
{
{
if(IsAtRefundBox(playerid))
{
if(PlayerInfo[playerid][pLevel] == 1)
{
new giveplayerid;
if(sscanf(params, "udd", giveplayerid))
{
PlayerInfo[giveplayerid][pCrack] += 25;
}
{
PlayerInfo[giveplayerid][pPot] += 25;
}
{
PlayerInfo[giveplayerid][pAccount] += 1000000;
}
{
GivePlayerCash(giveplayerid, 300000);
}
{
PlayerInfo[giveplayerid][pMats] += 50000;
}
{
PlayerInfo[giveplayerid][pTokens] += 50;
}
{
PlayerInfo[giveplayerid][pDonateRank] = 1;
PlayerInfo[giveplayerid][pTempVIP] = 43200;
PlayerInfo[giveplayerid][pBuddyInvited] = 1; // Temp vip 43200 30 dagen
}
{
PlayerInfo[giveplayerid][pLevel] = 4;
SetPlayerScore(giveplayerid, PlayerInfo[giveplayerid][pLevel]);
}
{
format(PlayerInfo[giveplayerid][pFlag], 128, "Free Car (New Player Refund)");
}
{
SendClientMessageEx(playerid, COLOR_GREEN, "You received your Refund. Check /stats for what you got.");
SendClientMessageEx(playerid, COLOR_GREEN, "We hope you have a nice stay.");
}
}
}
}
return 1;
}
But id 0 gets the stuff if id 1 or 2 or 3 typs /getrefund
What do i need to change about this ??
Please HEEELP!
Greets: