Search

open.mp forum

RegisterLogin

Discussion

General
Chat
Tech
Life
Art
Programming
open.mp
Development Updates
Questions and Suggestions
SA-MP
General Discussions
Videos and Screenshots
Support
Pawn Scripting
Tutorials
Releases
Plugins
Libraries
Filterscripts
Gamemodes
Maps
Advertisements
Other languages
Spanish/Espa?ol
Programaci?n
Discusi?n GTA SA Multijugador
Mods
Offtopic
Juegos
Portuguese/Portugu?s
Russian/???????
Italian/Italiano
Dutch/Nederlands
German/Deutsch
Romanian/Rom?na
Ex-Yu
Polish/Polski
Og?lne
Serwery
Skryptowanie
Filmiki i zdjecia
Lithuanian/Lietuvi?kas
French/Fran?ais
Hungarian/Magyar
Hindi/Urdu
Turkish
Other
Internal
Team
Hidden
Archived

Library

 Collections Links Members Roles

How i can add this to my command?

How can I make sure that only the players who are in my virtual world can read the message that I send, and that those who are...

ID
d6ouivnilegovhg7bnq0
author
nicolas_belic's avatar

Nicolas_Belic

@nicolas_belic


View profile
Copy link
  Report member
started
Feb 19, 2021
replies
0
participating
No

scroll to top

powered by storyden

Login
Discussion
Pawn Scripting
How i can add this to my command?
nicolas_belic's avatar

Nicolas_Belic

@nicolas_belic


View profile
Copy link
  Report member
• 5y
Pawn Scripting

How i can add this to my command?

pawn

How can I make sure that only the players who are in my virtual world can read the message that I send, and that those who are not in my virtual world do not read the message?



CMD:gl(playerid, params[])

{

? ? new Text[132], string[128], PlayerName[MAX_PLAYER_NAME];



? ? if(sscanf(params, "s[132]", Text))

? ? {

? ? ? ? SendClientMessage(playerid, -1, "{D41818}[COMANDO]{AFAFAF} /gl <texto>");

? ? }

? ? else

? ? {

? ? ? ? GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); // storing player name first in the PlayerName variable



? ? ? ? format(string, sizeof(string), "[ID:%d - %s]: %s",playerid, PlayerName, Text); //[ID:12 - Sebasti?n Price] texto

? ? ? ? SendClientMessageToAll(0xFFFFFF00, string);

? ? }



? ? return 1;

}
0 likes0 replies

    Please sign up or log in to reply