Need help on /(carname)
#5

Quote:
Originally Posted by hokarheng
Посмотреть сообщение
erm where do i put
if(strcmp("/elegy",cmdtext,true) == 0)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
CreateVehicle(562, x, y, z, 0, -1, -1, 60);
PutPlayerInVehicle(playerid,vehicleid,0);
return 1;
}
put in public OnPlayerCommandText(playerid, cmdtext[])
exemple
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(strcmp("/elegy",cmdtext,true) == 0)
   {
       new Float:x, Float:y, Float:z;
       GetPlayerPos(playerid,x,y,z);
       CreateVehicle(562, x, y, z, 0, -1, -1, 60);
       PutPlayerInVehicle(playerid,vehicleid,0);
       return 1;
   }
}
Reply


Messages In This Thread
Need help on /(carname) - by hokarheng - 12.07.2011, 16:40
Re: Need help on /(carname) - by Shadoww5 - 12.07.2011, 18:09
Re: Need help on /(carname) - by [MG]Dimi - 12.07.2011, 18:34
Re: Need help on /(carname) - by hokarheng - 13.07.2011, 11:14
Re: Need help on /(carname) - by Skaizo - 13.07.2011, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)