02.01.2012, 13:30
zcmd + sscanf = easy job.
pawn Код:
command(sellhouse, playerid, params[])
{
new giveplayerid, price;
if(!IsPlayerConnected(playerid)) return 0;
if(sscanf(params, "ui", giveplayerid, price)) return SendClientMessage(playerid, ~1, "Usage: /sellhouse (playerid) (price)");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, ~1, "That player is not online.");
//codul tau
return 1;
}

