Can someone help me to make a script like enter the origin on creating id card, here's the command of create id card
Код:
CMD:createidcard(playerid, params[])
{
if(PlayerInfo[playerid][pIdCard] != 0)
{
SendClientMessageEx(playerid, COLOR_WHITE, "You already have a Id Card.");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 2, 361.8299,173.6550,1008.3828))
{
SendClientMessageEx(playerid, COLOR_WHITE, "You are not at City Hall.");
return 1;
}
if(GetPlayerCash(playerid) < 25000)
{
SendClientMessageEx(playerid, COLOR_WHITE, "You need $25000 to create a id card.");
return 1;
}
new string[128];
new randomnumber = 1000000000 + random(8999999999);
PlayerInfo[playerid][pIdCard] = randomnumber;
format(string, sizeof(string), "You have successfully created a id card. (Serial Number: %d)", PlayerInfo[playerid][pIdCard]);
SendClientMessageEx(playerid, COLOR_WHITE, string);
GivePlayerCash(playerid, -25000);
return 1;
}