Szerző Téma: /cpad  (Megtekintve 748 alkalommal)

/cpad
« Dátum: 2012. Április 19. - 16:26:54 »
0 Show voters
Halli! Szeretnék egy olyan parancsot kérni amivel egy játékosnak kilehet úgy mond jelölni egy helyet és lerakja neki oda a cpt.
/cpad [JÁTÉKOSID/NÉV] [KORDINÁTÁK]

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
/cpad
« Válasz #1 Dátum: 2012. Április 19. - 16:33:18 »
0 Show voters
CMD:cpad(playerid, params[])
{
     new PID, Float:x, Float:y, Float:z;
   
     if(sscanf(params, \"ufff\", PID, x, y, z)) return SendClientMessage(playerid, -1, \"Használat: /cpad <ID/Játékosnév> <X> <Y> <Z>\");
     SetPlayerCheckpoint(PID, x, y, z);
     return 1;
}

Így esetleg. :D    (Lehet nem jó)
« Utoljára szerkesztve: 2012. Április 19. - 16:50:24 írta Gabor.. »

Nem elérhető Rupert

  • 2301
    • Profil megtekintése
/cpad
« Válasz #2 Dátum: 2012. Április 20. - 18:36:50 »
0 Show voters
Idézetet írta: Gabor.. date=1334845998\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20395\" data-ipsquote-contentclass=\"forums_Topic

CMD:cpad(playerid, params[])
{
     new PID, Float:x, Float:y, Float:z;
   
     if(sscanf(params, \"ufff\", PID, x, y, z)) return SendClientMessage(playerid, -1, \"Használat: /cpad <ID/Játékosnév> <X> <Y> <Z>\");
     SetPlayerCheckpoint(PID, x, y, z);
     return 1;
}

Így esetleg. :D    (Lehet nem jó)
 
De jó.

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
/cpad
« Válasz #3 Dátum: 2012. Április 20. - 18:43:12 »
+1 Show voters
Idézetet írta: Rupert date=1334939810\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20395\" data-ipsquote-contentclass=\"forums_Topic


 
CMD:cpad(playerid, params[])
{
     new PID, Float:x, Float:y, Float:z;
   
     if(sscanf(params, \"ufff\", PID, x, y, z)) return SendClientMessage(playerid, -1, \"Használat: /cpad <ID/Játékosnév> <X> <Y> <Z>\");
     SetPlayerCheckpoint(PID, x, y, z);
     return 1;
}

Így esetleg. :D    (Lehet nem jó)
 
De jó.
 
[/quote]
De nem jó.
SetPlayerCheckpoint(playerid,x,y,z,MÉRET);
 

CMD:cpad(playerid, params[])
{
     new PID, Float:x, Float:y, Float:z;
   
     if(sscanf(params, \"ufff\", PID, x, y, z)) return SendClientMessage(playerid, -1, \"Használat: /cpad <ID/Játékosnév> <X> <Y> <Z>\");
     SetPlayerCheckpoint(PID, x, y, z,5);
     return 1;
}

/cpad
« Válasz #4 Dátum: 2012. Április 20. - 20:20:02 »
0 Show voters
Köszönöm a segítséget, letesztelem hamarosan és írok :). Csak nem volt idõm :D eddig

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
/cpad
« Válasz #5 Dátum: 2012. Április 20. - 20:22:28 »
+1 Show voters
Jaj, bocsi. Elnéztem, nem írtam oda a méretet, így jó, amit a Benceee is írt.
 
CMD:cpad(playerid, params[])
{
     new PID, Float:x, Float:y, Float:z;
   
     if(sscanf(params, \"ufff\", PID, x, y, z)) return SendClientMessage(playerid, -1, \"Használat: /cpad <ID/Játékosnév> <X> <Y> <Z>\");
     SetPlayerCheckpoint(PID, x, y, z, 5);
     return 1;
}
« Utoljára szerkesztve: 2012. Április 20. - 20:23:53 írta Gabor.. »

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
/cpad
« Válasz #6 Dátum: 2012. Április 21. - 18:40:38 »
0 Show voters
[mod]Jó lett? Ha igen, akkor zárd a témát![/mod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal