How to make parachute?
#1

Can someone tell me how to make parachute command.Like when i type /para it cames a parachute pelase tell!
Reply
#2

Код:
if(strcmp(cmdtext, "/para", true) == 0)
{
	GivePlayerWeapon(playerid,46,1);
	SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute!");
	return 1;
}
Reply
#3

how to made more than 1 command because I made a telepor command
Reply
#4

pawn Код:
if(strcmp(cmdtext, "/para", true) == 0)
{
    GivePlayerWeapon(playerid,46,1);
    SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute!");
    return 1;
}
if(strcmp(cmdtext, "/tele", true) == 0)
{
//blah blah
ect....
Reply
#5

It sned me this errors when i compile C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(114 -- 115) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(116) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

Show us the command you made.
Reply
#7

if(strcmp(cmdtext, "/para", true) == 0)
(
GivePlayerWeapon(playerid,46,1);
SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute!");
return 1;
Reply
#8

Quote:
Originally Posted by IvancheBG
Посмотреть сообщение
if(strcmp(cmdtext, "/para", true) == 0)
(
GivePlayerWeapon(playerid,46,1);
SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute!");
return 1;
pawn Код:
if(strcmp(cmdtext, "/para", true) == 0)//your para command
{
    GivePlayerWeapon(playerid,46,1);
    SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute!");
    return 1;
}
if(strcmp(cmdtext, "/tele", true) == 0)//your tele command
{
    //do some new stuff here
    return 1;
}
Then just repeat this for any other commands you want.
Reply
#9

still isnt working this is my whole commands

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/vinewood", cmdtext, true, 10) == 0)
	{
	    SetPlayerPos(playerid, 1387.4211, -819.5637, 73.9426);
	    SetPlayerFacingAngle(playerid, 0);
	    SendClientMessage(playerid, 0x00FFFFAA, "Your have been teleported to Vinewood.");
	    return 1;
	}
	if(strcmp(cmdtext, "/para", true) == 0)
	(
           GivePlayerWeapon(playerid,46,1);
           SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute.");
           return 1;
Reply
#10

Quote:
Originally Posted by IvancheBG
Посмотреть сообщение
still isnt working this is my whole commands

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/vinewood", cmdtext, true, 10) == 0)
	{
	    SetPlayerPos(playerid, 1387.4211, -819.5637, 73.9426);
	    SetPlayerFacingAngle(playerid, 0);
	    SendClientMessage(playerid, 0x00FFFFAA, "Your have been teleported to Vinewood.");
	    return 1;
	}
	if(strcmp(cmdtext, "/para", true) == 0)
	(
           GivePlayerWeapon(playerid,46,1);
           SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute.");
           return 1;
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/vinewood", cmdtext, true) == 0)
    {
        SetPlayerPos(playerid, 1387.4211, -819.5637, 73.9426);
        SetPlayerFacingAngle(playerid, 0);
        SendClientMessage(playerid, 0x00FFFFAA, "Your have been teleported to Vinewood.");
        return 1;
    }
    if(strcmp(cmdtext, "/para", true) == 0)
    {
        GivePlayerWeapon(playerid,46,1);
        SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute.");
        return 1;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)