09.07.2015, 21:39
How I Can Make A Shop in My Script?
CMD:givewep(playerid, params[]) { static weaponid, ammo; if (sscanf(params, "udI(500)", weaponid, ammo)) return SendSyntaxMessage(playerid, "/buywep [weapon id] [ammo] [This operation requires $25000!"); if (weaponid <= 0 || weaponid > 46 || (weaponid >= 19 && weaponid <= 21)) return SendErrorMessage(playerid, "You have specified an invalid weapon."); GiveWeaponToPlayer(userid, weaponid, ammo); SendClientMessage(playerid, 0xD0AEEBFF, "%s! You bought a %s with %d ammo for $25000! .", ReturnName(userid, 0), ReturnWeaponName(weaponid), ammo); GivePlayerMoney(playerid, -25000); return 1; }
SetPlayerCheckpoint(playerid, x, y, z, size);
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid, x,y,z);
SetPlayerInterior(playerid, interiorid)
return 1;
}
To create a checkpoint :
PHP код:
PHP код:
KillerDVX, |