BuySim problem
#1

Buy sim command :

See if thats good so I can continue please and how can I do that it gives u Sim after u do that ? ? ?

Код:
CMD:buysim(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 6, 920.421142, -1361.637084, 13.003659)) {
		SendClientMessageEx(playerid,COLOR_GREY,"   You are not at the Telecom Company Arena!");
	else if(GetPVarType(playerid, "Sim")) {
		SendClientMessageEx(playerid, COLOR_GREY, "   You are already have Sim!");
		return 1;
	}
Reply
#2

I think using variable is better than PVar and btw you need a correction at line IsPlayerInRangeOfPoint

pawn Код:
CMD:buysim(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 6, 920.421142, -1361.637084, 13.003659)) {
        SendClientMessageEx(playerid,COLOR_GREY,"   You are not at the Telecom Company Arena!");
    else if(GetPVarType(playerid, "Sim")) {
        SendClientMessageEx(playerid, COLOR_GREY, "   You are already have Sim!");
        return 1;
    }
Reply
#3

Thats very nice that u fixed me and thanks but I need to make thats giving Sim how to do that ? ? ?
Reply
#4

LOL!! OFC using a variable.Make it 1 when it is success simple and add stuffs as you want
Reply
#5

HOW man...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)