26.07.2011, 04:06
pawn Код:
COMMAND:transfer(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid,20.0,2313,-4, 27) || !IsPlayerInRangeOfPoint(playerid, 20.0, 1432.9182,-997.8287,1639.7911)) return SendClientMessage(playerid,COLOR_RED,"You have to be in Bank");
new transfer, id;
if(sscanf(params,"ud", id, transfer)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE:/transfer [id] [Amount]");
else if(transfer > pInfo[playerid][Deposit]) return SendClientMessage(playerid,COLOR_RED,"You Don't Have That Amount In Bank To Transfer");
new file[100], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
format(file,sizeof(file), PlayerFile, Name);
return 1;
}