Guest User

Untitled

a guest
Apr 30th, 2015
441
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. main(){}
  5.  
  6. public OnGameModeInit()
  7. {
  8.     AddPlayerClass(289, 0, 0, 0 + 10, 0, 0, 0, 0, 0, 0, 0);
  9.     SetGameModeText("Testing 1 2 3");
  10.  
  11. }
  12.  
  13. public OnPlayerConnect(playerid)
  14. {
  15.  
  16.     new text[200];
  17.     format(text, sizeof(text), "Connected for: %d", NetStats_GetConnectedTime(playerid));
  18.     SendClientMessage(playerid, -1, text);
  19.  
  20.     return 1;
  21. }
  22.  
  23. CMD:v(playerid, params[])
  24. {
  25.     new Float: x, Float: y, Float: z;
  26.     GetPlayerPos(playerid, x, y, z);
  27.  
  28.     CreateVehicle(strval(params), x+2, y+2, z+0.2, 0.0, 1, 2, -1, 1);
  29.     return 1;
  30. }
  31.  
  32. CMD:w(playerid, params[])
  33. {
  34.     GivePlayerWeapon(playerid, strval(params), 9999);
  35.     return 1;
  36. }
  37.  
  38. public OnPlayerRequestClass(playerid, classid)
  39. {
  40.     return 1;
  41. }
RAW Paste Data