SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 17/06/2012, 04:01 PM   #1
[XPG]MarlonCS
Big Clucker
 
[XPG]MarlonCS's Avatar
 
Join Date: Jun 2012
Location: Magé, RJ
Posts: 169
Reputation: 10
Default [Ajuda] Deletar checkpoint quando player estiver nele

Eu queria que o checkpoint sumisse quando o player que o invocou com "/procurar" chegasse nele.

Code:
CMD:procurar(playerid, params[]) {
	new tmp[128];
	tmp = strtok(cmd, idx);
	giveplayerid = strval(tmp);
	if(!strlen(tmp)) return SendClientMessage(playerid,0xFF0000FF,"[SERVER] USO: /procurar [ID]");
	if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COR_BRANCO, "[SERVER] Id invalido.");
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(giveplayerid, X,Y,Z);
    SetPlayerCheckpoint(playerid, X,Y,Z, 6);
	timer[playerid] = SetTimerEx("Procurar",1000,true,"ii",playerid,giveplayerid);
	return 1;
}
[XPG]MarlonCS is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA] Quando o Player Digita L.S.T Português/Portuguese 2 25/04/2012 02:24 AM
[Ajuda] Quando o player morre felipe360 Português/Portuguese 4 25/10/2011 02:56 AM
[ajuda]FS quando o player sai e quando o player entra ou quando sai por bug LuizGustavo Português/Portuguese 5 10/10/2011 03:36 PM
[AJUDA]Como mostrar a função para o player só se ele estiver num certo local? Tifany_CHOC Português/Portuguese 7 31/07/2011 10:48 PM
[Ajuda] quando player morre [GET]Vidaloka Português/Portuguese 0 22/07/2010 03:39 AM


All times are GMT. The time now is 03:47 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.