21.03.2011, 17:41
Can someone tell me how to make parachute command.Like when i type /para it cames a parachute pelase tell!
if(strcmp(cmdtext, "/para", true) == 0) { GivePlayerWeapon(playerid,46,1); SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute!"); return 1; }
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....
if(strcmp(cmdtext, "/para", true) == 0)
( GivePlayerWeapon(playerid,46,1); SendClientMessage(playerid, 0x00FF00FF, "You've Received a Parachute!"); return 1; |
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;
}
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;
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; |
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;
}