Else on script help please?
#1

How would I make this into a else command -

Код:
    if(strcmp(cmdtext,"/duty",true)==0)
    {
	if(IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172))
	SetPlayerSkin(playerid, 280);
    SendClientMessage(playerid, 0xFF0000AA, "* To get a car go to the icon in the garage and it will tell you what to   type!");
    SendClientMessage(playerid, 0xFF0000AA, "* Type /weapons too see a list of weapons!");
    //else? SendClientMessage(playerid, 0xFF0000AA, "* You are not in range of the /duty point");
    return 1;
    }
Reply
#2

pawn Код:
if(strcmp(cmdtext,"/duty",true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172)) {
    SetPlayerSkin(playerid, 280);
    SendClientMessage(playerid, 0xFF0000AA, "* To get a car go to the icon in the garage and it will tell you what to   type!");
    SendClientMessage(playerid, 0xFF0000AA, "* Type /weapons too see a list of weapons!");
    }
    else {
    SendClientMessage(playerid, 0xFF0000AA, "* You are not in range of the /duty point");
    }
    return 1;
    }
Reply
#3

pawn Код:
if(strcmp(cmdtext,"/duty",true)==0)
    {
    if(!IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172))return SendClientMessage(playerid, 0xFF0000AA, "* You are not in range of the /duty point");
    SetPlayerSkin(playerid, 280);
    SendClientMessage(playerid, 0xFF0000AA, "* To get a car go to the icon in the garage and it will tell you what to   type!");
    SendClientMessage(playerid, 0xFF0000AA, "* Type /weapons too see a list of weapons!");
    return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)