Author Topic: Gups 1.16a Script spawn vehicle  (Read 3382 times)

0 Members and 1 Guest are viewing this topic.

Offline Ekril

  • Street Thug
  • *
  • Posts: 1
    • View Profile
Gups 1.16a Script spawn vehicle
« on: January 23, 2011, 05:12:27 pm »
I need a script to spawn a car for Gups 1.16a
I've tried myself to make a script but it doesn't work

   else if (strcmp(cmd, "!getcar", true) == 0) {
 {
         new
   Float:Angle;
         GetPlayerPos(playerid, x, y, z);
   GetPlayerFacingAngle(playerid,Angle);
         
   CreateVehicle(155, Float:-10, Float:-10, Float:-10, Float:0, 86, 44, 10);
   SetVehiclePos(strval(tmp),x+3,y+3,z,Angle);
         format(szMsg,sizeof(szMsg),"Spawning vehicle:[ %d ]",strval(tmp));
         SendClientMessage(playerid,COLOR_GREEN,szMsg);
      }

Offline Devian

  • Wiseguy
  • **
  • Posts: 92
    • View Profile
Re: Gups 1.16a Script spawn vehicle
« Reply #1 on: January 24, 2011, 05:06:45 am »
I need a script to spawn a car for Gups 1.16a
I've tried myself to make a script but it doesn't work

   else if (strcmp(cmd, "!getcar", true) == 0) {
 {
         new
   Float:Angle;
         GetPlayerPos(playerid, x, y, z);
   GetPlayerFacingAngle(playerid,Angle);
         
  CreateVehicle(155, Float:-10, Float:-10, Float:-10, Float:0, 86, 44, 10);
   SetVehiclePos(strval(tmp),x+3,y+3,z,Angle);
         format(szMsg,sizeof(szMsg),"Spawning vehicle:[ %d ]",strval(tmp));
         SendClientMessage(playerid,COLOR_GREEN,szMsg);
      }
Code: [Select]
CreateVehicle(155, Float:-10, Float:-10, Float:-10, Float:0, 86, 44, 10);Create Vehicle doesn't work yet.
probably in next version 0.4

Offline [GCK]KoFFe

  • Street Thug
  • *
  • Posts: 27
    • View Profile
Re: Gups 1.16a Script spawn vehicle
« Reply #2 on: January 24, 2011, 05:40:07 pm »
and also add CreatePickup and DeletePickup  and Clock counting settimerate in 0.4 and when will it be released?

yazeen

  • Guest
Re: Gups 1.16a Script spawn vehicle
« Reply #3 on: March 15, 2011, 04:08:02 pm »
Its already in gups /c getcar try it instead of !getcar XD

King of Noobs[/glow]