- 0
Am nevoie urgenta de ajutor!
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
alexandruo9
Problema intalnita (descriere):Asi dori daca puteti sa ma ajutati cu un gps pentru playeri adica asi dori ca politiei sa le apara un checkpoint unde este suspectul. Multumesc
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):Am gasit ceva pe net dar da erori
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:Am incercat am cautat dar nu am gasit si sunt cam incepator.
Asta am gasit pe net dar am errori
#include <a_samp> forward timer(); #if defined FILTERSCRIPT #define FILTERSCRIPT public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256], tmp[256], string[256], idx, giveplayerid; if(strcmp(cmd, "/gps", true) == 0) { new Float:x, Float:y, Float:z; GetPlayerPos(giveplayerid, x, y, z); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid,0xFFFF00AA,"Usage: /gps [playerid]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); format(string, sizeof(string), "%s launched in the wake of GPS to find you!'", Name); SendClientMessage(giveplayerid, 0xFFFF00AA, string); SendClientMessage(playerid, 0xFFFF00AA, "Coords : %f,%f,%f, Checkpoint created!Go to player!"); SetTimer("message",1000,false); SetPlayerCheckpoint(playerid, x, y, z); } else SendClientMessage(playerid, 0xFFFF00AA, "Player is not connected."); return 1; } return 0; } public timer() { new giveplayerid; new Float:x, Float:y, Float:z; GetPlayerPos(giveplayerid, x, y, z); SetPlayerCheckpoint(playerid, x, y, z); return 1; } #endif11 answers to this question
Recommended Posts