Raised This Month: $32 Target: $400
 8% 

Storing UserIds in an Array


Post New Thread Reply   
 
Thread Tools Display Modes
alex2001
Member
Join Date: May 2019
Old 06-25-2019 , 19:45   Re: Storing UserIds in an Array
Reply With Quote #11

bool AlreadyJoin[Maxplayers+1]=0;
and when exec action

if(AlreadyJoin[client] == 0){
CPrintToChat(client, "Okay..");
new struserid = GetClientUserId(client);
PushArrayCell(arr, struserid);
AlreadyJoin[client] = true;
return Plugin_Continue;}
else.... printtochat(client, "you already use this command") :

Last edited by DarkDeviL; 06-26-2019 at 01:54. Reason: Restore to previous version.
alex2001 is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 13:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode