13.12.2010, 02:19
HOw do i make a command that gives a person a bike? Like /mtbike and it puts the player on a bike? or /dinghy and the player gets a dinghy?
if (strcmp("/bike", cmdtext, true, 10) == 0)
{
new Float:x,Float:y,Float:z;
new Bike1;
GetPlayerPos(playerid, Float:x,Float:y,Float:z);
bike1 == CreateVehicle(bike id, x,y,z,10,1,1,10);
PutPlayerInVehicle(playerid, bike1, 0);
return 1;
}