09.03.2009, 18:50
hello,
I've got a license system, but i can't make it give a message when you already have a message, how do i do that??
this is the part of the script
I hope that someone can help me.
I've got a license system, but i can't make it give a message when you already have a message, how do i do that??
this is the part of the script
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/buycarlic", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(10.0,playerid,246.5378, 118.0774, 1003.2187))
{
if(5000 > GetPlayerMoney(playerid))
{
SendClientMessage(playerid,0x000087F6,"You don't have enough Money!");
return 1;
}
gLicenseC[playerid] = 1;
SendClientMessage(playerid,0x0000D4F6,"Thanks for Buying a Car License.");
GivePlayerMoney(playerid, -5000);
}
else
{
SendClientMessage(playerid,0x000087F6,"You have to be at the Main Hall to buy a licence!");
}
return 1;
}

